<?php
$db=false;
$clock=microtime(true); //benchmark clock feature
session_start();

$verify='index.php'; include'plugin/geist/verify.php';

if($_GET){ foreach(array_keys($_GET) as $get)$$get=$_GET[$get]; }
if(!isset($site)){ $site=''; $edit=false; }else$edit=true;
if(!isset($plugin))$plugin='base';
if(!isset($page))$page='sites';
if(!isset($tag))$tag=null;
if(!isset($language))$language=null;



//if($edit)
?><!doctype html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="css/print.css" type="text/css" media="print"/>
<style type="text/css" media="print">
</style>
<style type="text/css" media="screen">
/**{margin:0;}*/
body{margin:0 auto;background:url(../res/bg.png); font:12pt/18pt sans-serif; }
/**{border:1px solid;}/*debug*/

/*sitegeist*/
header{background:#bab;color:#eee;opacity:0.6;}
#content{width:83%;float:right;} /*debugger #content *{background:red;}*/
#content div{border:1px solid;} 
aside{width:15%;float:left;background:#bab;border:1px solid #dad;padding:0 0 0 1em;text-align:right;}
aside a{background:#cbc;margin:1em 0;padding:0 1em;font:22px serif;color:#111;}
aside a:hover{background:#dcd;}
footer{width:100%;float:right;text-align:right;}

div(overflow:auto;)
form{display:inline;}
input:hover{background:#fed;}
.a{cursor:pointer;text-decoration:underline;}
.a:hover{background:#fff;}
a{outline:none;}


/*frames*/
.base{background:#eee;border:1em solid #ddd;}
.drop{background:#ebb;border:1em solid #eaa;}
.sites{background:#bbe;border:1em solid #aae;}
.plugin{background:orange;border:0em solid #aae;}

.menu{opacity:0.6; background:red;}


/*lists*/
.rit{background:white;}
.rit:checked + li{border:1px solid;background:black;}
.site{display:inline;margin:1em 0;padding:0 1em; text-align:center;font:22px serif;}
.btn{display:inline;margin:1em 0;padding:0 1em;text-align:center;font:22px serif;border:1px solid;}
.btn:hover{background:#fed;}

/*headers*/
h1,h2,h3{float:right;}
h5{padding:0px;margin:0px; color:#922;}

</style><!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<title>hi sitegeist</title><link rel="shortcut icon" href="../res/sitegeist.gif"/>
</head><body>
<header><?php include'plugin/base/.base/menu.php'; ?></header>
<div id="content"><?php include"plugin/$plugin/.$page/0.php"; ?></div>
<aside><?php
if($edit){

if($db){ 
include'plugin/base/.sites/close.php';
?><h5>installed plugins</h5><?php
include'plugin/base/.plugins/list.php';
?><h5>install a new plugin</h5><?php
$listpage='add'; include'plugin/listpage.php';
?></p><?php }

}
?></aside>
<footer><p/><h5>[pageload: <?php echo microtime(true)-$clock; ?>s] sitegeist <del>&copy;</del> 2011  public domain / no copyright Jeffrey Geyssens - Marnix T'Jaeckx </h5>
<div id="bed"></div>
</footer>
<script type="text/javascript">
alert('<?php echo'all is well in ',$site; ?>');
</script></body></html><?php $db=null; ?>